package com.rybbaby.tss.front.tssMemberFollowUpRecord.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @description 跟进记录
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:22:55
 */
@Entity
@Table(name = "tss_member_follow_up_record")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssMemberFollowUpRecord implements Serializable {

	private static final long serialVersionUID = -3204006021060351354L;

	/** 主键 **/
	private String id;

	/** 状态 **/
	private Integer status;
	/** 会员id **/
	private String memberId;
	/** 预约试听时间 **/
	private Timestamp subscribeAuditionTime;
	/**到访时间**/
	private Timestamp visitingTime;
	/**
	 * 下次跟进时间
	 */
	private Timestamp nextFollowUpTime;
	/** 内容 **/
	private String  content;
	/** 版本 **/
	private Integer version;
	/** 创建时间 **/
	private Timestamp createTime;

	
	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_member_follow_up_recordIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_member_follow_up_recordIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}
	







	/**
	 * 方法: 取得创建时间
	 *
	 * @return java.sql.Timestamp 创建时间
	 */
	@Column(name = "createTime", nullable= true, length = 19)
	public java.sql.Timestamp getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * 方法: 设置创建时间
	 *
	 * @param createTime 创建时间
	 */
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	/**
	 * 方法: 取得版本
	 *
	 * @return java.lang.Integer 版本
	 */
    @Version
	@Column(name = "version", nullable= true, length = 11)
	public Integer getVersion() {
		return this.version;
	}
	
	/**
	 * 方法: 设置版本
	 *
	 * @param version 版本
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "status", nullable= true, length = 11)
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name = "memberId", nullable= true, length = 32)
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	@Column(name = "content", nullable= true, length = 200)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "subscribeAuditionTime", nullable= true, length = 19)
	public Timestamp getSubscribeAuditionTime() {
		return subscribeAuditionTime;
	}

	public void setSubscribeAuditionTime(Timestamp subscribeAuditionTime) {
		this.subscribeAuditionTime = subscribeAuditionTime;
	}
	@Column(name = "visitingTime", nullable= true, length = 19)
	public Timestamp getVisitingTime() {
		return visitingTime;
	}

	public void setVisitingTime(Timestamp visitingTime) {
		this.visitingTime = visitingTime;
	}

	@Column(name = "nextFollowUpTime", nullable= true, length = 19)
	public Timestamp getNextFollowUpTime() {
		return nextFollowUpTime;
	}

	public void setNextFollowUpTime(Timestamp nextFollowUpTime) {
		this.nextFollowUpTime = nextFollowUpTime;
	}
}